package com.situ.mall.controller.back;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.situ.mall.service.ICategoryService;
import com.situ.mall.service.impl.CategoryServiceImpl;
import com.situ.mall.util.JSONResult;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;

@Controller
@RequestMapping("/category")
public class CategoryController {
	@Autowired
	private ICategoryService categoryService;

	@ResponseBody
	@RequestMapping("/selectCategoryCount")
	public JSONResult selectCategoryCount() {
		JSONResult jsonResult  = categoryService.selectCategoryCount();
		return jsonResult;
	}
}
